/*
Aliya Saperstein
Proposal title: Gender Identity and Diversity, Part Two


HYPOTHESES

Stated-Hyp1: The rate of transgender identification will vary if the response order
and wording is changed.

	Test-Hyp1: The rate of transgender identification will be different if respondents
	are presented with the brief yes option first vs. description no option first. 


********************************************************************************
NOTES:
- The proposal doesn't provide sufficient information about the hypothesis because
this is a follow-up study and assumes that the reader is familiar with the first 
study. 

- In this follow-up study, the researchers examine whether varying response order 
changes the share of people who identify as transgender. Questions 3a and 3b pertain 
to each treatment arm (no first or yes first).
	
-The authors don't specify what their hypothesis is, they only mention that
they are interested in checking for consistency. We are assuming the hypothesis is
that there will be an effect of response order/wording.
*/

clear all
use "SapersteinB64.dta", clear

********************************************************************************

* INDICATORS OF EXPERIMENTAL MANIPULATION

* Treatment group:
	/*
	IF XTESS200 = 1-Option 1 [ SHOW QUESTIONS 1, 2, AND 3A] - 3a is short yes first
	IF XTESS200 = 2-Option 2 [SHOW QUESTIONS 1, 2, AND 3B] - 3b is detailed no first
	*/
	tab XTESS200
	recode XTESS200 (1=1) (2=0), gen(treat_yesfirst)
	tab treat_yesfirst
	
* OUTCOME MEASURES
	* recode missing
	foreach var in Q3A Q3B {
		replace `var'=. if `var'==-1
		tab `var'
	}

	gen transid = Q3A
	replace transid=Q3B if Q3A==.
	tab transid, mis
 	
	
********************************************************************************

* ANALYSIS
	

*Test-Hyp1: The rate of transgender identification will be different if respondents are presented with the brief yes option first vs. description no option first. 
	reg transid i.treat_yesfirst
	// do not reject. 0.000
	tess 1.treat_yesfirst, init(SapersteinB64)
